/* eslint-disable prettier/prettier */
import { Injectable, OnModuleInit } from '@nestjs/common';
import {PrismaClient} from '@prisma/client'

@Injectable()
export class PrismaService extends PrismaClient implements OnModuleInit{
    constructor(){
        super({
            log:[
                {
                    emit:'stdout',
                    level:'query'
                }
            ]
        })
    }

    async onModuleInit() {
        await this.$connect()
    }
}
